package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysUser;
import com.cy.pj.sys.pojo.SysUserDept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserDao {
    int getRowCount(String username);
    List<SysUserDept> findPageObjects(String username,Integer startIndex,Integer pageSize);

    List<SysUserDept> findPageObjects2(String username);

    int validById(Integer id, Integer valid, String modifiedUser);

    int insertObject(SysUser entity);

    SysUserDept findById(Integer id);

    int updateObject(SysUser entity);
}
